import * as React from 'react';
import { Route, Redirect, Switch } from 'react-router-dom';
import Home from './pages/main/home/Home';
import Login from "./pages/user/login/login";

import BokeWrite from "src/pages/self/boke_write/boke_write";




class Myrouter extends React.Component {
  public render() {
    return (
        <Switch>
          <Route path="/"  component={Home} />
          <Route path="/self/boke/write/:id"  component={BokeWrite} />
          
          <Route path="/login"  component={Login} />
          <Redirect to="/" />
        </Switch>
    );
  }
}

export default Myrouter;